package com.changzhi.common.enums;

/**
 *
 *
 */
public enum MatchRoleEnum {

	LEADER("leader", "队长"),
	NORMAL("normal", "队员"),
	ALTERNATE("alternate", "替补");

	private String value;
	private String desc;

	MatchRoleEnum(final String value, final String desc) {
		this.value = value;
		this.desc = desc;
	}

	public String getValue() {
		return value;
	}

	public String getDesc() {
		return this.desc;
	}


	public static MatchRoleEnum getEnum(String value){
		for (MatchRoleEnum anEnum : MatchRoleEnum.values()) {
			if(anEnum.getValue().equals(value)){
				return anEnum;
			}
		}
		return null;
	}
}
